package com.jingdianjichu.application.convert;

import com.jingdianjichu.application.dto.AuthPermissionDTO;
import com.jingdianjichu.application.dto.AuthRoleDTO;
import com.jingdianjichu.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichu.auth.domain.entity.AuthRoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 权限dto转换器
 *
 * @author: ChickenWing
 * @date: 2023/10/8
 */
@Mapper
public interface AuthPremissionDTOConverter {

    AuthPremissionDTOConverter INSTANCE = Mappers.getMapper(AuthPremissionDTOConverter.class);

    AuthPermissionBO convertDTOToBO(AuthPermissionDTO authPermissionDTO);

    AuthPermissionDTO convertBOToDTO(AuthPermissionBO authPermissionBO);

    List<AuthPermissionBO> convertBOToDTO(List<AuthPermissionBO> authPermissionBOList);

}
